/**
 * jims
 */
package com.jims.master.modules.doctor.service;

import com.jims.master.common.persistence.Page;
import com.jims.master.common.service.CrudService;
import com.jims.master.modules.doctor.dao.OutpTreatPrescDao;
import com.jims.master.modules.doctor.entity.OutpTreatPresc;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * 处置治疗药品表Service
 * @author CTQ
 * @version 2017-03-17
 */
@Service
@Transactional(readOnly = true)
public class OutpTreatPrescService extends CrudService<OutpTreatPrescDao, OutpTreatPresc> {

	public OutpTreatPresc get(String id) {
		return super.get(id);
	}
	
	public List<OutpTreatPresc> findList(OutpTreatPresc outpTreatPresc) {
		return super.findList(outpTreatPresc);
	}
	
	public Page<OutpTreatPresc> findPage(Page<OutpTreatPresc> page, OutpTreatPresc outpTreatPresc) {
		return super.findPage(page, outpTreatPresc);
	}
	
	@Transactional(readOnly = false)
	public int save(OutpTreatPresc outpTreatPresc) {
		return super.save(outpTreatPresc);
	}
	
	@Transactional(readOnly = false)
	public int delete(OutpTreatPresc outpTreatPresc) {
		return super.delete(outpTreatPresc);
	}

	@Transactional(readOnly = false)
	public int updateResult(OutpTreatPresc outpTreatPresc){
		int num = dao.updateResult(outpTreatPresc);
		return num;
	}
	
}